character encoding & image resize