Fix bug related to case sensitivity of site codes :poop:

http://manage.dimagi.com/default.asp?133792