try encode