Fixed bug #5.

Note that entity_decode now takes an array instead of a string.
Maybe an is_array () -> throw exception should be included. However, it works for now.