updated encoding issue