Rename theme helper to encodeURIComponent

refs #1089
Adding spec tests for encodeURIComponent helper.