Client namespace validation. Fixes #116, #117.