updated to ignore various binaries
Send only one char
use counter instead of pointer