Fix handling of profile dir - account for not existing profile dir.
Fix unicode error