urlencode images for rst files

closes #5350
Merge pull request #5395 from ivanov/5350

urlencode images for rst files