Replace space with underscore in Pick Entity fields when being typed in

I think it might be a meaningful help to automatically replace spaces with underscores when typing in entity names either in pickers or typing in entity names elsewhere. Either replace them live as typing, or upon exit field or save/apply.