use String#encode in sigma2mongo