as seen in Werkzeug and WebOb (just a foolproof)