fix Encoding::UndefinedConversionError
added ensure encoding dependency
use ensure_encoding when needed
version 1.4.3