Fix domain part validation for non alphanumeric charactors

very very small changes.
please see 'git diff'.