Regexp module does not handle \0

Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=2765

Reported by Johan H Sundström, IDA jhs@pike.ida.liu.se

Regexp("(.*)")->split("ho\0hum"); generates ({ "ho" }), instead of expected ({ "ho\0hum" }).