Added DEFAULT_INTERNAL_ENCODING