fixed 449 and added a test

also, removes the GET parameters from the search phrase by splitting on the first '?'