Changed code to decode utf-8 content