Rewrite unfold_line() to handle UTF8 line breaks.