Accept trailing newlines/spaces in Base64 strings