Remove 10.4 compatible documentation lookup code
Don’t show error when canceling documentation lookup dialog

Also remove the use of __CF_USER_TEXT_ENCODING as this is no longer necessary to ensure that pbpaste outputs UTF-8.