Consolidate getting and setting encoding in Zend_Locale_Format