fix `can't convert Fixnum into String` for `replace`

support `{{ site.paginate_path | replace: ':num', 2 }}` in Jekyll