working around encoding issue