fix fakeXHR when response is function handler and url contains RegExp characters

The problem here was that String.exec accepts RegExp or string, in the latter case compiles the string into RegExp using `new RegExp(string)`. This might not match in case we ended up here because fake_server.js#L54 matched by string equality.