This one is subtly worse since Chr returns a valid ASCII character only for values <= 127 and returns the character that is that code point for values > 127. Since your string is actually UTF8, when you use chr(179) you get ³ (a superscript 3) and not the vertical bar you might have expected from the ASCII chart.

You can create a constant for the vertical bar symbol or you can use this code that references a specific TextEncoding where the vertical bar is 179: