Replace put with patch...
Change update_attributes for update...
Remove unnecessary encoding comments...