#7 resolve encoding