Fix for issue with dashes in json identifiers

This should fix the bug stated in:

https://github.com/alavrik/piqi/issues/34

Will append with some tests.

Cheers,
Dennis