If you have a non-ascii character this will fail since it uses `ascii` by default to decode the `str`.
I think that the best would be to allow only `unicode` parameter.