clean up allowed character handling in text/number input a bit.  
it is now possible to add custom allowed chars  
fixes issue in file-select GUI where you could not type a '.'