Improve ugly interface for Sanitizer::escapeId()