Actually there's a test in Werkzeug that asserts that this raises UnicodeError if given a bytestring.