Consolidate getting and setting encoding in Zend_Locale_Format

Just a tidy-up of repeated code.