fix some string_types checks in traitlets

various bugs inappropriately prohibiting unicode objects
Merge pull request #6616 from minrk/parse_notifier_unicode

fix some string_types checks in traitlets