fixed "random" string::out-of-range exception
- learned a valuable lesson about actually caring about the number of bytes transferred
- cleaned up Utils::parse_message switch