XD-2342 Fix JDBCHDFS Job Password issue

* Add test-cases
* Make `xdFormatStream` more robust

XD-2342 Update server-side regex

* Add unit tests