added support for handling newlines. single newlines are changed into space character to support proper wordwrapping by uitextview