Check sanitaryName only on basename without extension
Check sanitaryName only on basename without extension

This regression originates from:

8725bb1e Clean up sketch loading

before this commit the sketch name sanitization was made on the sketch
name without the extension.
After 8725bb1e instead the name sanitization is made on the filename, so
including the ".ino" extension.

This lead to a weird corner case, caused by the limit of 63 characters
on the sketch name: before 8725bb1e it would be possible to save a sketch
with a name of exactly 63 characters, but after 8725bb1e this sketch will
suddenly becomes invalid becuase the 63 chars name + extension would exceed
the 63 characters limit.

This commit fix this regression.

Fix #5431

Chris--A/Arduino,stickbreaker/Arduino,stickbreaker/Arduino,bsmr-arduino/Arduino,me-no-dev/Arduino-1,majenkotech/Arduino,Chris--A/Arduino,stickbreaker/Arduino,Chris--A/Arduino,bsmr-arduino/Arduino,Chris--A/Arduino,me-no-dev/Arduino-1,Chris--A/Arduino,bsmr-arduino/Arduino,majenkotech/Arduino,me-no-dev/Arduino-1,majenkotech/Arduino,majenkotech/Arduino,stickbreaker/Arduino,stickbreaker/Arduino,bsmr-arduino/Arduino,stickbreaker/Arduino,bsmr-arduino/Arduino,me-no-dev/Arduino-1,me-no-dev/Arduino-1,me-no-dev/Arduino-1,Chris--A/Arduino,bsmr-arduino/Arduino,stickbreaker/Arduino,majenkotech/Arduino,Chris--A/Arduino,me-no-dev/Arduino-1,majenkotech/Arduino,me-no-dev/Arduino-1,Chris--A/Arduino,bsmr-arduino/Arduino,bsmr-arduino/Arduino,majenkotech/Arduino