Use Time.httpdate instead of Time.parse, add encoding to spec/api_auth_spec.rb