Dict: Fix encoding.