Replace special characters with hyphens when generating source dict

Some tag values are likely to contain commas or colons; this is naughty,
so we replace them with hyphens.

Signed-off-by: Sharif Olorin <sio@tesser.org>