Fix problem with custom reason phrases in django < 1.6