fixed invalid filename by using quotes in the query