fixed dquotenc encoding inversion