more: check for buffer size when write multibyte char

Signed-off-by: Karel Zak <kzak@redhat.com>