used dictionary key safely, fixes #548
Merge pull request #551 from gwu-libraries/t548-handle-dictionary-key-safely

used dictionary key safely, fixes #548