Cleaner setEncoding
Merge branch 'develop' into issue3

Conflicts:
	foscam.js