Evaluate output param separately

Is this actually an improvement? I’m not sure… It’s possible it’s
actually more confusing now. Anyway, this resolves #46.
Specify utf-8 output

Fixes #42.
Merge pull request #47 from andylolz/46-output-format

Evaluate final bit of transform string first, to determine output format