Fixed a type bug (unicode vs string).