Strip query after ? in GET requests, fix #1