Updated encoding imports to respect Django 1.5 changed and the degrade gracefully.