fix for encoding issue