add encoding to enforce a String return type