newlib: remove extra code from read()

os_input should add the \n to the end of the string.