fix #3501 replace . when generating input ids