Bug 1024518 part 1 - Make RegExp parser handle latin1 strings. r=bhackett
Bug 1024518 part 2 - Make RegExp flags parser handle latin1 strings and add tests. r=bhackett