Fixing encoding on request