Fix string_to_sid() to allow non '\0' termination of the string - allows