Use utils.supports_lone_surrogates in place of Jython-specific tlogic