fix problem with delimiter and separator replacing

The problem is explained by @diogomafra here: 
https://github.com/bcardarella/client_side_validations/issues/461#issuecomment-12737592