apply maxcountryman's encoding workaround for linkedin example