Fix 'invalid byte sequence in UTF-8' in HooksController spec

Kudos to http://stackoverflow.com/a/10208404/240963