PEP8 fixes
Transmission pathscrub crash, encode to UTF-8 later.

- Refs #1935