City ordinance aims to protect trick-or-treaters from sex offenders