Replace |filename| with {filename} syntax