New module and functions to handle utf8.

See https://github.com/ocsigen/ocsigenserver/pull/44. cc @hhugo