Stringify connection parameters another way

Tests from #425 plus a different approach to the stringify.