fix libbson character set problem