Generate valid clip path id

Prior to this patch, if you created a dc chart using a complex selector
like dc.barChart('#area .bar'), the resulting clip path id was invalid:
'area .bar-clip'. This patch replaces spaces, periods, and hash marks
in the id with hyphens to generate a valid clip path id.