Fix line endings for OS X

Pipe the output to iconv to convert line endings for OS X.