Fix invalid css selectors in form_collections_helper_test.rb.
Change date helper tests to expect attributes with double quoted strings.
Make output_buffers used in tests be utf-8 encoded.