Fixed a few issues related to line endings and smilies