Fixed carriage-return removal in read. Resolves #19.