Handle collection names with dots in them.

Should fix #44.