Do not replace equal signs. Try HTML entities for other problem values.