I tried this as well and didn't work for me. Maybe it works for other people?
When I connect my headphones and switch to the microphone, the same crappy sound comes up. I had tried before with the checkbox in the bluetooth explorer to disable HFP, but also didn't work.
>defaults write com.apple.BluetoothAudioAgent "Disable HFP" -int 1