fix base64 decode white space loop