Implement writing IRC line objects to strings