Whoops, md5 expects a bytestring.
Make the ref manager recognize curly quotes when finding alternates for text.