add support for unicode for dict keys