Properly handle user/group names with spaces