Fix wrapping for lines containing UTF-8 chars