Ensure branch names with funky characters are shell-escaped

Fixes #695
hub 1.12.3