ENG-7307: fix properties with newline/spaces so catalog load will not fail

I can do that change its same logic used for not displaying password value. will replicate there too.