Simplify bencode parsing with applicative functors.
Correctly output dictionary key as a bencode string.