fix issue with space in query string