Convert from string to unicode (fixes py3 compat)