Don't escape '-' characters in OCD IDs

Fix bad regex that caused '-' characters to be escaped as '~'.