Improve hyphen to dash transformation