If you code or decode textfiles on non-Macintosh platforms they will still use the Macintosh newline convention (carriage-return as end of line).
As of this writing, hexbin() appears to not work in all cases.