InvalidMessage is in ActiveSupport::MessageEncryptor namespace

Closes #9302