Fixed failing _to_string() calls
Merge pull request #3166 from edx/flowerhack/opaque-keys

Fixed failing _to_string() calls