Replaced use of regex with substring-index for form parsing. Former use was quite broken treating incoming data as the regex.