Part of legacy/trac#24033 (moved).
https://gitweb.torproject.org/torspec.git/tree/proposals/285-utf-8.txt#n29