workaround double encoding