Use Encode module instead of utf8 pragma