make sure it is a string, restrictedTraverse does not like unicode