HanyuPinyin object ported to PHP