encoding ps module as ansi