fixed to parameter is not encoded.

Bug ticket
https://redmine.openpne.jp/issues/3220
BP ticket
https://redmine.openpne.jp/issues/3673