Fixed encoding issue with salt