Fix some errors in the PMD.

Validate profile names for uniqueness as well as filenames.
Remove spaces from auto generated nickname on creation of profile.

Change-Id: Icae82a9deaceccefd7b87e00215dfa28aa065a1b
Fixes-Issue: CLIENT-461
Fixes-Issue: CLIENT-462
Reviewed-on: http://gerrit.dmdirc.com/3206
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>