unexpected itoa() behavior

Try replacing this:

    Serial.write(mystr);

with this:

    Serial.write(x);

Pete