Fix base64 error when using non base64 chars in password