Do not write partial code units

Possible fix for #48

Do any other encodings require a larger code unit than 1 byte, or just utf16?