Unescape val column of ajxp_user_prefs when using postgresql

User preferences are broken on postgresql. The code assumes the values loaded from the val column are not escaped but dibi does not unescape bytea values automatically. This causes an error whenever a user tries to enable WebDAV repositories.