This RabbitMQ page states:
Queue names may be up to 255 bytes of UTF-8 characters.
In ruby (1.9.3), how would I truncate a UTF-8 string by byte-count without breaking in the middle of a character? The resulting string should be the longest possible valid UTF-8 string that fits in the byte limit.