Fix issue with string attributes returning CharSequence instances that don't
compare well with other strings.