enforce code to UTF-8 to avoid sqlite