Fix for service_processor query escaping