Resource index - enable latin1 encoding; tidy up old code.