Support utf-8 commitlog.

Support non-ascii commitlog.