fix #3 encoding issue