only get the default encoding one time...
only get the default encoding one time
for the encode/decode functions, use a module-level cached value of the
default encoding given by encoding.getdefaultencoding(). This presumes
the value returned by getdefaultencoding isn't going to change over time.