fixes bug 971940 - 'unicode' is not a type we can check something is NOT

@rhelmer r?