Get rid of the extra "=" in the key=value syntax.
Guard against bogus metadata when enumerating.

(Must be a bug in encoding?)