Introduce encode method for pluses and slashes