fixed regex search on byte object issue