utils.web: Rename get_encoding to getEncoding for consistency.