checking to see if the value to be set is already encoded or not. this will prevent double encoding