refs #147 fix apihooks unicode error in 2.4.1