[RJA-2372][fix]: Made file attachments serializable

to be possible to send them in remote action result(from agent to backend).