preparing for UTF-8 and PNG support