This happens when there are whitespaces (new lines) between bracket and actual base64 encoded string. Just delete the offending whitespaces and you'll be fine.