added character encoding