It is possible to have spaces and no-ascii signs in a tag. Maybe it is enough when the attribute `selected_tag` is encoded and unquoted with `urllib2.unquote`?