encoding utf8 for model