Updated data loading

Charrefs are now stored as json objects instead of the raw python dict
used before.  This avoids the potentially dangerous use of eval().  see
issue #1.