fix: metadata image route normalize path posix for windows (#71673)
### Why?
When handling the opengraph-image size exceeding the limit, we mapped
with string literal between Rust and JavaScript. The Rust string literal
contains backslashes `\` on Windows, incompatible with JavaScript string
syntax.
Following up on #71615.
Fixes #71582