Fix haxe compile error on (R2.length) to php string->length, which should have compiled to strlen(R2).