expand_set_arguments: fix expansion breakage

This broke in commit 16e1f2185bb7ed36d3119b29a50ca0ff75fa8b71.
Use writemsg for unicode safety in set messages.