Slightly better handling of padding characters from base64 decoded data.