404 should be a 400 for invalid URL

* Also, fix quoting consistency for non-interpolated strings