Instead of only stripping it from the ends, since that's actually what the spec says.
Since the forgiving base64 is part of the web infra standard