Dirichlet form approach to diffusions with discontinuous scale