remove spaces from base64 file before trying to decode it