Compat 1.9.3

change %i() to []
specify encoding