Decided to remove extra newline in decode so that an encode is reverisble.