Fix removeTrailingSlash() for Win32
Fix EOL

LF
Fix warning about SAFE statement