remove nonstandard writestring and conform to node-serial which allows .write of a string