use `invalid: :replace, undef: :replace` instead of `:invalid => :replace, :undef => :replace`