Added UTF-8 support to helper.