Use encode and decode to return Unicode datas in the template, close #317