amlgrep: Make regex conversion more robust for --rs

Much more compatibility with (h|py)mlgrep for newline('\n') handling in
record separator (--rs) regex.