Update utils.py

needs to spot unicode as well as string