Oddly enough, it appears that MySQL is perfectly happy to accept queries that include invalid utf8 (eg for literals for blobs) - unfortunately, it's currently impossible to make those queries using mysql_async, since the query methods all accept &str. Would you be willing to accept a patch to add equivalent methods to query and prepare that accept &[u8] as well? Maybe query_bytes and prepare_bytes?