Remove spaces between chunks of base64 encoded string