Fix bug when piping unicode strings