Allow unicode type values

Fix issue with passing `unicode` values.

	>>> unicode(u"À", "utf-8").encode("utf-8")
	Traceback (most recent call last):
	File "<stdin>", line 1, in <module>
	TypeError: decoding Unicode is not supported