config: decode the string with utf-8 on getitem

This is what we do elsewhere, but this was missed.
config: only return the config key in iteration

At its core, the config is a key-value storage with peculiar key
equality rules. Make it behave more like a python dictionary and return
the key on iteration.