peselect filename without extension on rename

@jancborchardt one for you 
@karlitschek minor improvement ported from a customer
@DeepDiver1975 care to validate that this works in IE (I tried and seems to work ok)