add entityEncode option for integration with js2uri 1.2.0