compatibility with ocaml 3.12.1
fix signature of text_of_raw