Bugfix: output of ATTACH_URI was not correctly formatted