Fix reset_pass.php script for PostgreSQL and add encoding header.