How to pass special characters in REST commands?