Add unquote_str to compat module

This gives us a single consistent interface that allows us to
urldecode and string and decode it to unicode in a single function.