Extended the basic validation in commit e17c1b25 to return a failure when invalid base64 characters are included.