Don't use side-effecty string append [Fixes #1223]