Implemented word wrapping for UTF-8 texts.