Use a string key in the nagios cache

- Python's JSON fails to convert integer keys correctly
- id /= decode . encode