Fixed line termination.  Thanks to igromanru.