Check UTI equality when specifying which types to put on the pasteboard

Fixes #1887