Params and empty strings

Is there some better way to do this?

http://assertbuggy.blogspot.com/2007/06/ruby-on-rails-params-and-empty-strings.html

I usually use a before validate hook, and do things like:

def normalize_fields
  self.foo = nil if self.foo.blank?
  self.bar = nil if self.bar.blank?
end