Update class.attachments.php

json unicode save fix