Support unicode HTTP method names in Python 2.x

This is a very simple fix for toastdriven/django-tastypie#935 with a regression test.

(I have just found a nearly-identical fix, without a test, at toastdriven/django-tastypie#863)