Refine text format options

Do not break a multi-byte character, e.g. working with cyrillic encodings is
not pain in the ass.