emulate pbcopy and pbpaste