Fix byte/string regular expressions