Accept trailing newline characters in Base64 strings

Some client authors append a newline character to Base64 strings, e.g. in `<auth/>` packets.  Ignore such newline characters instead of stumbling over them.