Printer edit only encode unicode strings (fixes #16)

Also use the printer encoding instead of the hardcoded one.