Using django native encoding functions.