I have a file with a filename which has a double underscore in it. When Drupal saves the file, it shortens it to be only one. ie:
When Drupal saves the file, it removes one of the underscores and names it this:
Where does Drupal do this? I need to account for any changes which Drupal makes to the filename and I need to know what other characters it may remove etc.