handle case where unicode is passed in py2, unexpected though it may be
handle case where unicode is passed in py2, unexpected though it may be

git-svn-id: 6d9763a5a770351123389058c013888add577529@16386 fe389314-cf27-0410-b35b-8c050e845b92

spacetelescope/stsci.tools