fix windows tests: utf8 encoding issue for char string and snprintf() implementation