fix error with long keys in ActiveSupport::Cache::FileStore

@grosser @rafaelfranca