Fix #819. Ensure all `toHex()` calls are preceded with "#"