remove calls to re:replace (too new for some versions of Erlang/OTP)