Revert "fixes encoding exceptions for non-well encoded strings at dump"

This reverts commit 6268ef521b82ee9340923d2faa8d6b0a5bbd77eb.
fixes encoding exceptions for non-well encoded strings at dump