Use 'utf-8' as default/fallback encoding.

- Also reorder stdlib imports alphabetically :)
Merge remote-tracking branch 'ivan/bug/4427_default-encoding-to-utf8' into develop