Fixing undefined index error when route data is passed as an array without a parameters index. Removing charset=utf-8 from encoding - not really necessary.