Escape id before query in case id contains "\"