I didn't use try because integers can be passed to encryptors and they don't respond to force_encoding