UTF-8-aware stream editor like sed(1), using the sam command set.