call to_hash before sanitize_for_mass_assignment to allow Hashie::Mash support