Call HTML::Entities::encode_entities, via a hash, within a string.