Fixed encoding issue that would make it fail to launch if the query contained special characters.