use str factory to bypass utf-8 decoding issues