changed toUtf8 to toLocal8Bit for all targets,

 .. because this way we have always the right codec for system calls.

This commit is untested, but I think we can merge it after a strong review.