Fix line ending issue (\r\n vs \n)