fixes #4, without a regex

This is all just superficial change but it does the job.  I've not dug into the MySQL protocol at all yet - there's probably a better solution, but it would need some Server API change and more time than I have free this afternoon.