Fix garbled characters with code blocks including utf-8 strings