404 should have been a 400 for invalid URL

* Also, fix quoting consistency for non-interpolated strings