Get encoding from charset and fallback to property