Properly parsing special chars for API search call