Fix checkstyle warnings.
Add helper to convert string and char to utf-8 bytes.
Apidoc.