BISERVER-10238 Rename functionality is allowing user to enter a name like ../users which leave the UI in a non-useable state

changed the checking of invalid characters