encoding strings in helpers