Adding check around unsanitized prefix

@charleso @markhibberd 
Extra space /supernit