replaced urlencode method to not uses spaces, and removed autoload_methods functionality which doesn't appear to be compatible with current version of jsonapi