How do I handle (e.g. correctly escape) parens in a 'defaults write ...' key value?
To escape parens successfully in the defaults command you have to use quotes and inside the quotes single quotes:

Example: 

defaults write com.apple.screencapture location "'/Users/user/Desktop/(Screenshots)'"