Moved encoding attribute.
Thanks @hassansin