Methods for encoding data has been moved to 'Extensions' class