ignore newlines and spaces in base64