encoding issue in demo