Fix ShaCalculator handling of mixed-case keys.

This was sorting the keys before upcasing them, which would result in
them being used in the wrong order.
Merge pull request #1 from alphagov/fix_sha_mixed_case

Fix ShaCalculator handling of mixed-case keys.