Escape \, in hash bug. Fixes #1666