Lazy initialization
Test encoding utils
More test coverage on encoding utils
Remove unused import
Edit docstring originally from Django
Docstring style