escape / in query for filename generation