Various commands may (accidentally or intentionally) encounter non-ascii data. While python stdout without pipe is fine, when piping it assumes ascii. Fix this to always assume utf-8 explicitly.