Collections with dots

Fixes #2548.
@gregose If a collection label allows "." but not "/", is it still safe?