Remove trailing white spaces
Change MAX_UTF8_SIZE to 4

See p.94 ~ p.95 in [1]. The maximum UTF-8 size shall be 4.

[1] http://www.unicode.org/versions/Unicode6.2.0/ch03.pdf