Add explodeLegacyKey to allow empty key components.

We use keys 'foo//bar', where bar is basically in
an unnamed folder. Previously this would have
been filtered out as invalid.