fix for encoding problem