Fixed problem with aspect being unicode not str

Should be more careful using isinstance. Using a try/except block
instead.