Fix issue with id's that contain periods . colons : and brackets [ ]

Fixes #45