Fixing unicode issues when piping, fixes #4