Optimized line folding algorithm. foldline function now expects only unicode.
Now not accepting unsecaped new line characters in a content line.
When folding line - preserving space at the end, if present.
Modified the tests accordingly.