remove trailing newline before decoding